#ifndef VERROR_H
#define VERROR_H

#include <QWidget>
#include <QIcon>
#include <QMessageBox>
#include <QSpacerItem>
#include <QGridLayout>

#include "../Models/MPictures.h"
#include "../Controlers/CDesign.h"

class VError : public QWidget
{
    Q_OBJECT

private:
    VError();
    ~VError();

    QMessageBox *popup_box;
    QIcon *icon;
    QSpacerItem *h_spacer;
    QGridLayout *layout;

    static VError* singleton;

public:
    static VError* get_instance();

    void popup_login_error();
    void popup_login_warning();
};

#endif // VERROR_H
